package com.teapos.dao;

import java.util.List;
import java.util.Map;

import com.teapos.annotation.DataSource;

@SuppressWarnings("rawtypes")
@DataSource("c_test")
public interface OrderDao {

	void saveOrder(Map map);
	
	void saveOrderItems(List list);
	
	List findOrders(Map map);
	
	int findOrderCount(Map map);
	
	List findOrderItems(Map map);

	Map findOrderById(String id);

	void updateOrder(Map map);
	
	Map findOrderByNo(String orderNo);

	List summaryOrders(Map map);
	
	int summaryOrdersCount(Map map);
	
	List findItemsByOrderId(String id);

	List findItemsByUser(Map map);
	
	List findOrdersWithCustomer(Map map);
	
	int findOrdersWithCustomerCount(Map map);
	
}
